Optimal. Leaf size=26 \[ \frac {a x^2}{2}-\frac {b \tanh ^{-1}\left (\cos \left (c+d x^2\right )\right )}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {14, 4205, 3770} \[ \frac {a x^2}{2}-\frac {b \tanh ^{-1}\left (\cos \left (c+d x^2\right )\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 3770
Rule 4205
Rubi steps
\begin {align*} \int x \left (a+b \csc \left (c+d x^2\right )\right ) \, dx &=\int \left (a x+b x \csc \left (c+d x^2\right )\right ) \, dx\\ &=\frac {a x^2}{2}+b \int x \csc \left (c+d x^2\right ) \, dx\\ &=\frac {a x^2}{2}+\frac {1}{2} b \operatorname {Subst}\left (\int \csc (c+d x) \, dx,x,x^2\right )\\ &=\frac {a x^2}{2}-\frac {b \tanh ^{-1}\left (\cos \left (c+d x^2\right )\right )}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.03, size = 57, normalized size = 2.19 \[ \frac {a x^2}{2}+\frac {b \log \left (\sin \left (\frac {c}{2}+\frac {d x^2}{2}\right )\right )}{2 d}-\frac {b \log \left (\cos \left (\frac {c}{2}+\frac {d x^2}{2}\right )\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 44, normalized size = 1.69 \[ \frac {2 \, a d x^{2} - b \log \left (\frac {1}{2} \, \cos \left (d x^{2} + c\right ) + \frac {1}{2}\right ) + b \log \left (-\frac {1}{2} \, \cos \left (d x^{2} + c\right ) + \frac {1}{2}\right )}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.27, size = 30, normalized size = 1.15 \[ \frac {{\left (d x^{2} + c\right )} a + b \log \left ({\left | \tan \left (\frac {1}{2} \, d x^{2} + \frac {1}{2} \, c\right ) \right |}\right )}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.12, size = 39, normalized size = 1.50 \[ \frac {a \,x^{2}}{2}-\frac {b \ln \left (\csc \left (d \,x^{2}+c \right )+\cot \left (d \,x^{2}+c \right )\right )}{2 d}+\frac {c a}{2 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 31, normalized size = 1.19 \[ \frac {1}{2} \, a x^{2} - \frac {b \log \left (\cot \left (d x^{2} + c\right ) + \csc \left (d x^{2} + c\right )\right )}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.62, size = 69, normalized size = 2.65 \[ \frac {a\,x^2}{2}-\frac {b\,\ln \left (-b\,x\,2{}\mathrm {i}-b\,x\,{\mathrm {e}}^{d\,x^2\,1{}\mathrm {i}}\,{\mathrm {e}}^{c\,1{}\mathrm {i}}\,2{}\mathrm {i}\right )}{2\,d}+\frac {b\,\ln \left (b\,x\,2{}\mathrm {i}-b\,x\,{\mathrm {e}}^{d\,x^2\,1{}\mathrm {i}}\,{\mathrm {e}}^{c\,1{}\mathrm {i}}\,2{}\mathrm {i}\right )}{2\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 2.72, size = 42, normalized size = 1.62 \[ \begin {cases} \frac {a \left (c + d x^{2}\right ) - b \log {\left (\cot {\left (c + d x^{2} \right )} + \csc {\left (c + d x^{2} \right )} \right )}}{2 d} & \text {for}\: d \neq 0 \\\frac {x^{2} \left (a + b \csc {\relax (c )}\right )}{2} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________